<template>
	<view>
		<view v-for="k in row" class="loading" :style="'height:'+height+'rpx;'"></view>
	</view>
</template>

<script>
export default {
	props: {
		row: {
			type: Number,
			default: 1
		},
		height: {
			type: Number,
			default: 30
		}
	},
	data() {
		return {
		}
	},
	mounted() {
		
	},
	methods: {
		
	}
}
</script>

<style lang='scss'>
	.loading {
	  background-color: #eee;
	  background-image: linear-gradient(90deg, #eee, #f5f5f5, #eee);
	  background-size: 400rpx 100%;
	  background-repeat: no-repeat;
	  border-radius: 8rpx;
	  display: inline-block;
	  line-height: 1;
	  width: 100%;
	  animation: progress 1.2s ease-in-out infinite;
	  height: 25rpx;
	}
	
	@keyframes progress {
	  0% {
	    background-position: -400rpx, 0;
	  }
	  100% {
	    background-position: calc(400rpx + 100%), 0;
	  }
	}
</style>